<template>
	<view class="">
		<uni-nav-bar
		statusBar="true" 
		:fixed="true" 
		:border="false"
		 :leftIcons="true"
		backgroundColor="#1D7DFF"
		leftIcon="back"
		@click-left="back"
		color="#ffffff">
			<view class="index-top-nav-title">
				<view class="">{{i18n.index_lg11}}</view>
				<!-- <text @tap.stop="jumpList" class="iconfonts">{{i18n.bili}}</text> -->
			</view>
		</uni-nav-bar>
		<view class="content">
			<view class="list">
				<view>{{plan01.title}}</view>
				<rich-text :nodes="plan01.content"></rich-text>
			</view>
			
			<view class="list">
				<view>{{plan02.title}}</view>
				<rich-text :nodes="plan02.content"></rich-text>
			</view>
		</view>
		<view class="tip_s">
			<view>{{type.title}}</view>
			<rich-text :nodes="type.content" selectable="true"></rich-text>
		<!-- 	<text selectable="true">
				联合创始人/联合合伙人 报名方式
				
				官方USDT充值地址（ERC20）：
				0x8ecef4426389df57eea0731a9b1498714528b0c3
				官方USDT充值地址（OMNI）：
				1Hwj33f1qYuCtNLzG9NXg92onj6VnEvEP8
				
				联合创始人金额：
				联合合伙人金额：
				USDT充值日期：
				姓名：
				地区：
				联系方式：
				U乐钱包账号：
				U乐钱包UADA充值地址：
				备注：官方地址充值完成，填写上述资料，登陆U乐钱包复制提交在线客户即可，审核完成，赠送UADA自动到账个人U乐钱包。
			</text> -->
		</view>
		<view class="message">
			<text>{{i18n.index_lg24}}</text>
			<view class="">
				{{i18n.index_lg25}}： 
			</view>
			<text>0xf857c343e59b2ecd0143e1fe6bdd6749f541f8d5</text>
		</view>
		
		<load v-if="showLoad"></load>
	</view>
</template>

<script>
	import Load from '../../components/common/load.vue';
	import uniNavBar from '@/components/uni-nav-bar/uni-nav-bar.vue';
	import indexList from "../../components/common/index-list.vue"
	import {fetch, showToast, pageto, forceUpdate, check_login} from '@/common/js/util.js'
	import {mapGetters} from 'vuex' 
	export default {
		data() {
			return {
				showLoad:false,
				plan01:'',
				plan02:'',
				type:''
			}
		},
		computed:  {
			i18n() {
				return this.$t('message'); 
			},
			...mapGetters([
				'getRequestUrl',
				"getLoginInfo",
				'getTextArr',
				'getLangType',
				'getLang',
				'getPackages'
			])
		},
		components:{
			uniNavBar,
			indexList,
			Load
		},
		onLoad() {
			this.getModul()
		},
		methods:{
			getModul(){
				///api/index/jihua
				
				fetch(this.getRequestUrl+'/api/index/jihua',{},'post')
					.then(res=>{
						if(res.data.code){
							this.plan01 = res.data.data[0]
							this.plan02 = res.data.data[1]
							this.type = res.data.data[2]
							this.type.content = this.type.content
								.replace(/<p([\s\w"=\/\.:;]+)((?:(style="[^"]+")))/ig, '<p')
								.replace(/<p([\s\w"=\/\.:;]+)((?:(class="[^"]+")))/ig, '<p')
								.replace(/<p>/ig, '<p class="p_class">')
								.replace(/\<img/gi, '<img style="max-width:98%;height:auto" ')
							
							
						}
					})
				
			},
			back(){
				uni.navigateBack({
					delta:1
				})
			},
		}
	}
</script>
<style>
	page{
		background-color: #f0f0f0;
	}
</style>
<style scoped lang="scss">
	.p_class{
		width: 100%;
		white-space:normal;
	}
	.index-top-nav-title{
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 0 30upx;
		view{
			font-size:36upx;
			font-weight: bold;
		}
		text{
			font-size:26upx;
			font-weight: 100;
		}
	}
	.content{
		padding: 0 30upx;
		margin-top: 40upx;
		.list{
			padding:40upx 20upx 20upx;
			border-radius: 10upx;
			margin-bottom: 20upx;
			background-color: #FFFFFF;
			font-size:26upx;
			text-align: center;
			text{
				font-size:26upx;
				display: block;
				color: #929292;
			}
			view{
				font-size: 30upx;
				font-weight: bold;
				margin-bottom: 20upx;
				color: #1d7dff;
			}
		}
	}
	.tip_s{
		background-color: #FFFFFF;
		margin: 0 30upx;
		padding: 20upx;
		border-radius: 10upx;
		text{
			font-size: 28upx;
		}
	}
	.message{
		margin:40upx 0;
		padding: 0 30upx;
		text{
			color:#999999;
			font-size: 24upx;
		}
		view{
			color: #333333;
			font-size: 28upx;
			margin: 20upx 0;
		}
	}
</style>